fidget with (something)

Translations
tripoter (quelque chose)
Definitions
To engage in small movements or manipulations of an object, often due to nervousness, restlessness, or boredom.